import { EChartsInstance, Opts } from "echarts-for-react/lib/types";
import { BaseChartProps } from "./Base";
import { LineChartProps } from "./Line";

interface ChartProps {
  height?: number | string;
  width?: number | string;
  style?: React.CSSProperties;
  className?: string;
  loading?: boolean;
  loadingOption?: any;
  theme?: string;
  onEvents?: Record<string, Function>;
  onReady?: (instance: EChartsInstance) => void;
  opts?: Opts;
}

export type { ChartProps, BaseChartProps, LineChartProps };
